
import 'package:flutter/material.dart';

///
/// image_demo.dart
///
///
///

void main() => runApp(const MaterialApp(home: ImageDemoWidget(),));


class ImageDemoWidget extends StatelessWidget {
  const ImageDemoWidget({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    final result = Scaffold(
      appBar: AppBar(title: const Text('FadeInImage Demo')),
      body: FadeInImage.assetNetwork(
        placeholder: 'images/loading.gif',
        image: 'https://i0.hdslb.com/bfs/face/23c68e9a1968a67ffbea9a20e64d04f75c42e2f2.jpg@240w_240h_1c_1s.webp',
        fit: BoxFit.cover,
        width: 200,
        height: 200,
      ),
    );
    return result;
  }
}

